/*
 ============================================================================
 Name		: BCWorldDocument.cpp
 Author	  : Vincent Tam
 Copyright   : All Rights Reserved To Vincent Tam
 Description : CBCWorldDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "BCWorldAppUi.h"
#include "BCWorldDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CBCWorldDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CBCWorldDocument* CBCWorldDocument::NewL(CEikApplication& aApp)
	{
	CBCWorldDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CBCWorldDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CBCWorldDocument* CBCWorldDocument::NewLC(CEikApplication& aApp)
	{
	CBCWorldDocument* self = new (ELeave) CBCWorldDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CBCWorldDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CBCWorldDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CBCWorldDocument::CBCWorldDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CBCWorldDocument::CBCWorldDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CBCWorldDocument::~CBCWorldDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CBCWorldDocument::~CBCWorldDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CBCWorldDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CBCWorldDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CBCWorldAppUi;
	}

// End of File
